define(['jquery', 'bootstrap'], function($, bootstrap) {
	return {
		
		
		
		init : function(params) {
			$("#" + params.id).click(function(event) {
				event.preventDefault();
				$.ajax({
					type:"get",
					url: params.url,
					dataType: "json",
					contentType: "application/json; charset=utf-8",
					success : function(msg) {
						$.each(msg, function(key, value) {
							$("#"+key).val(value);
						});
						
						$("#dialog").modal({
				            'keyboard' : false
				        });
					}
				});
			});
		}
	};
});